//
//  PisctureViewController.m
//  随拍
//
//  Created by lanou3g on 16/1/18.
//  Copyright © 2016年 Ashoka. All rights reserved.
//

#import "PisctureViewController.h"
#import "TPCSpringMenu.h"

@interface PisctureViewController ()


@property (nonatomic ,strong) UIView *backView;
@property (nonatomic ,strong) UIImageView *picturImage;
@property (nonatomic ,strong) UITextField *textField;


@end

@implementation PisctureViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:self.backView];
    [self.view addSubview:self.textField];
    
    
    
    
}

- (UIView *)backView
{
    if (!_backView) {
        _backView = [[UIView alloc] initWithFrame:CGRectMake(10, 10, self.view.frame.size.width/2, 200)];
        _backView.backgroundColor = [UIColor redColor];
    }
    return _backView;
}

- (UIImageView *)picturImage{
    if (!_picturImage) {
        _picturImage = [[UIImageView alloc] initWithFrame:self.view.frame];
        _picturImage.backgroundColor = [UIColor blueColor];
    }
    return _picturImage;
}


- (UITextField *)textField{
    if (!_textField) {
        _textField = [[UITextField alloc] initWithFrame:CGRectMake(self.view.frame.size.width/2 + 10, 10, self.view.frame.size.width/2 - 10, 200)];
        _textField.clearButtonMode = UITextFieldViewModeWhileEditing;
        
    }
    return _textField;
}


@end
